<?php $this->load->view('admin/header'); ?>
    <div class="main clear">
        <div class="tool">
            <?php if($section_class){?>
                <?php foreach($section_class as $class):?>
                    <a href="/index.php?d=admin&c=section&m=index&classid=<?php echo $class['classid'];?>" ><?php echo $class['name'];?></a>
                <?php endforeach;?>
            <?php }?>
        </div>

        <div class="table02">
            <table width="100%" cellspacing="0" cellpadding="0" border="0">
                <tbody>
                <tr>
                    <th width="10%">ID</th>
                    <th width="20%">名称</th>
                    <th width="20%">备注</th>
                    <th width="20%">操作</th>
                </tr>
                <?php if($section_data){?>
                    <?php foreach($section_data as $data):?>
                        <tr>
                            <td><?php echo $data['sectionid'];?></td>
                            <td><?php echo $data['name'];?></td>
                            <td><?php echo $data['remark'];?></td>
                            <td>
                                <a href="/index.php?d=admin&c=section&m=edit&sid=<?php echo $data['sectionid'];?>">编辑</a>|
                                <a href="/index.php?d=admin&c=section&m=make&sid=<?php echo $data['sectionid'];?>">生成</a>
                            </td>
                        </tr>
                    <?php endforeach;?>
                <?php }?>
                </tbody>
            </table>
        </div>

    </div>

<?php $this->load->view('admin/footer'); ?>